/*
 * DefaultColorProvider.java
 * 
 * last update: 14.01.2010 by Stefan Saru
 * 
 * author:	Alec(alecu@kermit.cs.pub.ro)
 *
 * Obs: N/A
 */

package ide;

import java.awt.*;

/**
 * Provides a color for each verilog token.
 * TODO: to be replaced with a customizable class
 */
class  DefaultColorProvider implements ColorProvider {

	Color[] colorTable =
	{
			Color.gray,		//tokSLComm
			Color.darkGray,	//tokMLComm
			Color.red,		//tokBinNr
			Color.red,		//tokOctNr          
			Color.red,		//tokDecNr          
			Color.red,		//tokHexNr          
			Color.red,		//tokFloatNr
			Color.blue,		//tokKeyword
			Color.magenta,	//tokPreproc
			Color.pink,		//tokSystask
			Color.black,	//tokSeparator
			Color.red,		//tokString   
			Color.black		//tokStuff 
	};

	public Color getColor(int tokType) {
		return colorTable[tokType];
	}
}